//存储是好友关系的两人
#pragma once
#include <string>
#include <cstddef>
#include <odb/nullable.hxx>
#include <odb/core.hxx>

namespace zzy_mims
{
    #pragma db object table("friend_relation")
    class FriendRelation
    {   
    public:
        FriendRelation(){};
        ~FriendRelation(){};

        FriendRelation(const std::string& sender_id,const std::string& accepter_id)
        :_sender_id(sender_id),_accepter_id(accepter_id){};

        void sender_id(const std::string& val){_sender_id = val;};
        std::string sender_id()
        {
            return _sender_id;
        }

        void accepter_id(const std::string& val){_accepter_id = val;};
        std::string accepter_id()
        {
            return _accepter_id;
        }

    private:
        friend class odb::access;

        #pragma db id auto
        unsigned long _id;

        #pragma db type("varchar(64)")
        std::string _sender_id;
        #pragma db type("varchar(64)")
        std::string _accepter_id;

    };
}